package com.chushouya.product.dto.admin.product.evaluate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@ApiModel("评估选项模板")
public class TempEvaluateItemValueAddDTO {

    @ApiModelProperty(value = "评估选项id", required = true)
    @NotNull(message = "评估选项不能为空")
    private Long valueId;

    /**
     * 评估项目选项名称
     */
    @ApiModelProperty(value = "评估选项名称", required = true)
    @NotBlank(message = "评估选项名称不能为空")
    private String valueName;

    /**
     * 扣减数值
     */
    @ApiModelProperty(value = "扣减数值", required = true)
    private BigDecimal value = BigDecimal.ZERO;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序", required = true)
    @NotNull(message = "排序不能为空")
    private Integer sort;

}
